From 6bf0914fbdb055c573d15a1e05be7740f61fa51d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 28 Jul 2011 00:14:49 +0000 Subject: [PATCH] Followup r93344: forgot to fix test. In other news: inline data providing is eww. --- .../{ImageFunctionsTest.php => media/MediaHandlerTest.php} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename tests/phpunit/includes/{ImageFunctionsTest.php => media/MediaHandlerTest.php} (88%) diff --git a/tests/phpunit/includes/ImageFunctionsTest.php b/tests/phpunit/includes/media/MediaHandlerTest.php similarity index 88% rename from tests/phpunit/includes/ImageFunctionsTest.php rename to tests/phpunit/includes/media/MediaHandlerTest.php index d6518b04de..99df4f80f9 100644 --- a/tests/phpunit/includes/ImageFunctionsTest.php +++ b/tests/phpunit/includes/media/MediaHandlerTest.php @@ -1,6 +1,6 @@ $expected ) { $y = round( $expected * $height / $width ); - $result = wfFitBoxWidth( $width, $height, $max ); + $result = MediaHandler::fitBoxWidth( $width, $height, $max ); $y2 = round( $result * $height / $width ); $this->assertEquals( $expected, $result, -- 2.20.1